package com.aggregate.pay.pingan.bean;

import com.aggregate.pay.pingan.enums.Storage;
import com.aggregate.pay.pingan.jackson.converter.StorageDeserialize;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * 文件上传接口响应data参数对象，需要将CommonResult对象的属性data解密并转换成该对象
 * @author Moyq5
 * @date 2017年6月26日
 */
public class FileUploadResult {

	/**
	 * 存储区域，必填
	 */
	@JsonDeserialize(converter = StorageDeserialize.class)
	private Storage storage;
	
	/**
	 * 文件路径，必填
	 */
	@JsonProperty("file_path")
	private String path;

	public Storage getStorage() {
		return storage;
	}

	public void setStorage(Storage storage) {
		this.storage = storage;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Override
	public String toString() {
		return "FileUploadResult [storage=" + storage + ", path=" + path + "]";
	}

}
